package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 地质因子配比表
 * @TableName ybab01a
 */
@TableName(value ="ybab01a")
@Data
public class Ybab01a implements Serializable {
    /**
     * 因子索引
     */

    @TableField(value = "ybab01a010")
    private Integer ybab01a010;

    /**
     * 图层类型
     */
    @TableField(value = "ybab01a020")
    private String ybab01a020;

    /**
     * 图层名称
     */
    @TableField(value = "ybab01a030")
    private String ybab01a030;

    /**
     * 分析字段
     */
    @TableField(value = "ybab01a040")
    private String ybab01a040;

    /**
     * 因子影响值
     */
    @TableField(value = "ybab01a050")
    private BigDecimal ybab01a050;

    /**
     * ID号
     */
    @TableField(value = "ybab01a060")
    private String ybab01a060;

    /**
     * 模型编号
     */
    @TableField(value = "ybab01a070")
    private String ybab01a070;

    /**
     * 行政编码
     */
    @TableField(value = "ybab01a080")
    private String ybab01a080;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybab01a other = (Ybab01a) that;
        return (this.getYbab01a010() == null ? other.getYbab01a010() == null : this.getYbab01a010().equals(other.getYbab01a010()))
            && (this.getYbab01a020() == null ? other.getYbab01a020() == null : this.getYbab01a020().equals(other.getYbab01a020()))
            && (this.getYbab01a030() == null ? other.getYbab01a030() == null : this.getYbab01a030().equals(other.getYbab01a030()))
            && (this.getYbab01a040() == null ? other.getYbab01a040() == null : this.getYbab01a040().equals(other.getYbab01a040()))
            && (this.getYbab01a050() == null ? other.getYbab01a050() == null : this.getYbab01a050().equals(other.getYbab01a050()))
            && (this.getYbab01a060() == null ? other.getYbab01a060() == null : this.getYbab01a060().equals(other.getYbab01a060()))
            && (this.getYbab01a070() == null ? other.getYbab01a070() == null : this.getYbab01a070().equals(other.getYbab01a070()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbab01a010() == null) ? 0 : getYbab01a010().hashCode());
        result = prime * result + ((getYbab01a020() == null) ? 0 : getYbab01a020().hashCode());
        result = prime * result + ((getYbab01a030() == null) ? 0 : getYbab01a030().hashCode());
        result = prime * result + ((getYbab01a040() == null) ? 0 : getYbab01a040().hashCode());
        result = prime * result + ((getYbab01a050() == null) ? 0 : getYbab01a050().hashCode());
        result = prime * result + ((getYbab01a060() == null) ? 0 : getYbab01a060().hashCode());
        result = prime * result + ((getYbab01a070() == null) ? 0 : getYbab01a070().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybab01a010=").append(ybab01a010);
        sb.append(", ybab01a020=").append(ybab01a020);
        sb.append(", ybab01a030=").append(ybab01a030);
        sb.append(", ybab01a040=").append(ybab01a040);
        sb.append(", ybab01a050=").append(ybab01a050);
        sb.append(", ybab01a060=").append(ybab01a060);
        sb.append(", ybab01a070=").append(ybab01a070);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
